import Find from '@/views/Find'  //@是src文件夹的简写
import My from '../views/My'
import Friend from '../views/Friend'

import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter) // VueRouter插件初始化

const router = new VueRouter({
    routes: [
        { path: '/find', component: Find },
        { path: '/my', component: My },
        { path: '/friend', component: Friend },
    ],
    //link自定义高亮类名
    linkActiveClass: 'active', //模糊匹配的类名 默认:router-link-active
    linkExactActiveClass: 'exact-active' //精确匹配类名 默认:router-link-exact-active

})

export default router